#include <iostream> 
using namespace std;
int main()
{
    int a,b,c,d;
    cin>>a>>b>>c>>d;
    int sum = a + b + c + d;
    float average;
    average = sum / 4.0;
    printf("Sum = %d; Average = %.1f", sum,average);
}